home *** CD-ROM | disk | FTP | other *** search
/ Beano - Dennis the Menace Cardz / Beano Cardz: Dennis the Menace.iso / pc / swfs / nofile.swf / scripts / DefineSprite_46 / frame_2 / DoAction.as
Encoding:
Text File  |  2001-03-27  |  345 b   |  23 lines

  1. x2 = getProperty("/minnie tremble", _X);
  2. if(x2 < x1)
  3. {
  4.    tellTarget("/minnie tremble/minnie")
  5.    {
  6.       gotoAndStop("left");
  7.    }
  8. }
  9. if(x1 < x2)
  10. {
  11.    tellTarget("/minnie tremble/minnie")
  12.    {
  13.       gotoAndStop("right");
  14.    }
  15. }
  16. if(x1 == x2)
  17. {
  18.    tellTarget("/minnie tremble/minnie")
  19.    {
  20.       gotoAndStop("front");
  21.    }
  22. }
  23.